package user;

import book.BookList;
import operation.IOperation;

public abstract class User {
    protected String name;
    protected IOperation[] iOperations;//定义一个接口数组，里面的元素都是对象
    public User(String name) {
        this.name=name;
    }
    public abstract int menu();
//    public void doWork(int choice,BookList bookList) {
//        this.iOperations[choice].work(bookList); //this.iOperations[choice]实际上是子类对象中接口数组的工作
//    }
    public abstract void doWork(BookList bookList,int choice);
}
